package com.carrental.api.ums.domain.vo;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.carrental.common.annotation.ExcelDictFormat;
import com.carrental.common.convert.ExcelDictConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;



/**
 * 会员信息视图对象 ums_user
 *
 * @author liangyi
 * @date 2022-03-20
 */
@Data
@ApiModel("会员信息视图对象")
@ExcelIgnoreUnannotated
public class UmsUserVo {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    @ApiModelProperty("")
    private Long userId;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    @ApiModelProperty("姓名")
    private String realName;

    /**
     * 用户名
     */
    @ExcelProperty(value = "用户名")
    @ApiModelProperty("用户名")
    private String userName;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    @ApiModelProperty("手机号")
    private String telephone;

    /**
     * 邮箱
     */
    @ExcelProperty(value = "邮箱")
    @ApiModelProperty("邮箱")
    private String email;

    /**
     * 性别0男，1女，3保密
     */
    @ExcelProperty(value = "性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_user_sex")
    @ApiModelProperty("性别")
    private Integer sex;

    /**
     * 会员积分
     */
    @ExcelProperty(value = "会员积分")
    @ApiModelProperty("会员积分")
    private Long integral;

    /**
     * 身份证号码（实名）
     */
    @ExcelProperty(value = "身份证号码", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "实=名")
    @ApiModelProperty("身份证号码（实名）")
    private String idCardNumber;

    /**
     * 头像
     */
    @ExcelProperty(value = "头像")
    @ApiModelProperty("头像")
    private String avatar;

    /**
     * 是否封禁
     */
    @ExcelProperty(value = "是否封禁", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "user_status")
    @ApiModelProperty("是否封禁")
    private Integer isEnabled;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间", converter = ExcelDictConvert.class)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
}
